#!/bin/bash

cd "`dirname $0`"

DATE=`date +%y%m%d_%HH%MM%S`

BASESRC="distrib/fsrootdev"

# colors :
# 31 : removing
# 32 : copying
# 33 : cleaning
# 34 : creating archive

# <-- Creating the directory
    ./makefsrootdev
# -->

# <-- Creating archive
    if [ `which 7zr` ]
    then
        cd ${BASESRC}

        echo -e "\x1b[1;34mCreating archive...\x1b[0m"
        7zr a -r "../SunOS-dev_${DATE}.7z" *
        echo -e "\x1b[1;34mok\x1b[0m"
    else
        echo "Can't find compress tool"
        exit 1
    fi
# -->

